<%@page import="java.io.InputStreamReader"%>
<%@page import="java.util.Properties"%>
<%@ page language="java" pageEncoding="utf-8"%>
<%@ page import="cn.chinaunicom.sdsi.frm.sys.R"%>
<%
Properties prop=new Properties();       
prop.load(new InputStreamReader(this.getClass().getClassLoader().getResourceAsStream("upf.properties"), "UTF-8"));
%>
<!DOCTYPE html>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="renderer" content="webkit">
<meta name="description" content="the main page">
<meta name="author" content="seal">
<title><%=prop.getProperty("cn.unicom.title")%></title>
<link href="${appName}/resource/css/def/img/favicon.png" rel="bookmark" type="image/x-icon" />
<link href="${appName}/resource/css/def/img/favicon.png" rel="icon" type="image/x-icon" />
<link href="${appName}/resource/css/def/img/favicon.png" rel="shortcut icon" type="image/x-icon" />

<link href="${appName}/resource/css/def/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="${appName}/resource/css/def/bootstrap/validator/bootstrapValidator.min.css" rel="stylesheet">
<link href="${appName}/resource/css/def/frm/common/pageHelper.css" rel="stylesheet">

<!--[if lt IE 9]>
  <script src="${appName}/resource/js/bootstrap/assets/html5shiv.min.js"></script>
  <script src="${appName}/resource/js/bootstrap/assets/respond.min.js"></script>
  <script src="${appName}/resource/js/jquery/plugin/json2.js"></script>
<![endif]-->
<script src="${appName}/resource/js/jquery/jquery-1.12.4.min.js"></script>
<script src="${appName}/resource/js/jquery/plugin/jquery.blockUI.js"></script>
<script src="${appName}/resource/js/bootstrap/js/bootstrap.min.js"></script>
<script src="${appName}/resource/js/bootstrap/validator/bootstrapValidator.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="${appName}/resource/js/bootstrap/assets/ie10-viewport-bug-workaround.js"></script>

<script src="${appName}/resource/js/frm/sys/commjs.js"></script>
<script src="${appName}/resource/js/frm/sys/changeBodyPadding.js"></script>
<script>
	$.ajaxSetup({
		cache : false,
		error : function(event, xhr, options, exc) {
			if (0 == event.status) {
				// 请求未完成 do nothing
			} else if (500 == event.status) {
				alert('系统异常请联系管理员');
			} else if (406 == event.status) {
				alert('您无权限访问此功能');
			} else if (404 == event.status) {
				alert('请检查参数无误后联系管理员');
			} else {
				alert('访问异常，请刷新重试');
			}
		}
	});

	var appPath = '${appPath}';
	var appName = '${appName}';
	var frmPrefix = appName + appPath + '/';
	var pageHelper = new Object();
</script>